//
//  SliderTypeFourViewController.m
//  SpecialEffectsProject
//
//  Created by 蓓蕾 on 2021/11/4.
//

#import "SliderTypeFourViewController.h"
#import "SystemMapViewScroller.h"
#import "PopoutClass.h"

@interface SliderTypeFourViewController ()<UITableViewDelegate,UITableViewDataSource>

@property (nonatomic, strong) UITableView *tableView;

@end

@implementation SliderTypeFourViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];

    UITableView *tableView     = [[UITableView alloc]initWithFrame:CGRectMake(0, 0, kScreenWidth, kScreenHeight-250) style:UITableViewStylePlain];
    tableView.delegate         = self;
    tableView.dataSource       = self;
    [self.view addSubview:tableView];
    tableView.backgroundColor  = [UIColor groupTableViewBackgroundColor];
    tableView.tableFooterView  = [UIView new];
    [self mapScroller];
}
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 30;
}

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"TABLEVIEW"];
    if (!cell) {
        cell              = [[UITableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"TABLEVIEW"];
    }
    cell.textLabel.text   = [NSString stringWithFormat:@"这是第%ld行",indexPath.row];
    cell.selectionStyle   = UITableViewCellSelectionStyleNone;
    return cell;
}

-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    return 50;
}
- (void)mapScroller{
    
    SystemMapViewScroller *mapView = [[SystemMapViewScroller alloc]initWithFrame:CGRectMake(0, 0, kScreenWidth, kScreenHeight)];
//    [PopoutClass leeAleartCustomVIew:mapView customW:kScreenWidth customH:kScreenHeight alearAlpha:0.4 positionType:(LEECustomViewPositionTypeCenter) openAnimationStyle:LEEAnimationStyleOrientationBottom | LEEAnimationStyleZoomEnlarge closeAnimationStyle:LEEAnimationStyleOrientationBottom | LEEAnimationStyleFade openAnimDuration:0.3 closeAnimDuration:0.3 clickBackgroundClose:YES];
    [self.view addSubview:mapView];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
